package com.sdry.service.impl.lz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.mapper.lz.ProcessItemMapper;
import com.sdry.model.lz.ActualTimeInfo;
import com.sdry.model.lz.LzQueryCriteria;
import com.sdry.model.workplace.MousseSample;
import com.sdry.model.lz.ProcessItem;
import com.sdry.service.lz.ProcessItemService;

@Service
@Transactional
public class ProcessItemServiceImpl implements ProcessItemService{

	@Resource
	ProcessItemMapper processItemMapper;
	
	@Override
	public Long addProcessItem(ProcessItem processItem) {
		return processItemMapper.addProcessItem(processItem);
	}

	@Override
	public Long deleteProcessItemById(long id) {
		return processItemMapper.deleteProcessItemById(id);
	}

	@Override
	public Long editProcessItemById(ProcessItem processItem) {
		return processItemMapper.editProcessItemById(processItem);
	}

	@Override
	public List<ProcessItem> queryProcessItem(LzQueryCriteria criteria) {
		return processItemMapper.queryProcessItem(criteria);
	}

	@Override
	public int countProcessItem(LzQueryCriteria criteria) {
		return processItemMapper.countProcessItem(criteria);
	}

	@Override
	public List<ProcessItem> queryProcessItemFlag1() {
		return processItemMapper.queryProcessItemFlag1();
	}

	@Override
	public List<ProcessItem> queryProcessItemFlag2() {
		return processItemMapper.queryProcessItemFlag2();
	}

	@Override
	public Long addActualTimeInfo(ActualTimeInfo actualTimeInfo) {
		return processItemMapper.addActualTimeInfo(actualTimeInfo);
	}

	@Override
	public List<ActualTimeInfo> queryActualTimeInfoList(LzQueryCriteria criteria) {
		return processItemMapper.queryActualTimeInfoList(criteria);
	}

	@Override
	public int countActualTimeInfoList(LzQueryCriteria criteria) {
		return processItemMapper.countActualTimeInfoList(criteria);
	}

	@Override
	public List<MousseSample> queryMembraneFilaments(LzQueryCriteria criteria) {
		return processItemMapper.queryMembraneFilaments(criteria);
	}

	@Override
	public int countMembraneFilaments(LzQueryCriteria criteria) {
		return processItemMapper.countMembraneFilaments(criteria);
	}

}
